import { createRouter, createWebHashHistory } from 'vue-router'

const routes = [
  {
    path: '/',
    component: () => import('../views/Main.vue'),
    name: "home1",
    redirect: '/home',
    children:[] 
  },
  {
    path: "/login",
    // 路由懒加载，动态导入组件
    component: () => import("../views/Login.vue")
  }
]

const router = createRouter({
  history: createWebHashHistory(),
  routes
})

export default router